package org.yu.team2023.flashdays.client;

import lombok.Getter;
import lombok.Setter;
import net.minecraft.network.chat.Component;
import net.minecraftforge.eventbus.api.Event;
import net.minecraftforge.fml.event.IModBusEvent;
import org.yu.team2023.flashdays.ModDamageTypes;
import org.yu.team2023.flashdays.net.DamageParticlePackage;


public class DamageParticleEvent extends Event implements IModBusEvent {
    @Getter
    private final DamageParticlePackage particle;
    @Setter@Getter
    private int color;
    @Setter@Getter
    private Component text;
    public DamageParticleEvent(DamageParticlePackage particle) {
        this.particle = particle;
        this.color= ModDamageTypes.getDamageColor(particle.damageId);
        this.text=particle.text;
    }

    public String getMsgId(){
        return particle.damageId;
    }



}
